
import { Entity, Column, PrimaryGeneratedColumn, OneToMany, CreateDateColumn, PrimaryColumn } from 'typeorm';

@Entity()
export class Collect {
    @PrimaryColumn()
    collectid: string;
    @Column()
    userid: string;
    @Column()
    articleid: string;
    @CreateDateColumn({
        type: 'timestamp'
    })
    create_time: Date;
}
